#ifndef ONLINEREMI_H
#define ONLINEREMI_H

#include <QtGui>
#include <QtSql>
#include <QtWebKit>
#include <QtNetwork>
#include "rt.h"
#include "decipheraddon.h"

namespace Ui {
class OnlineRemi;
}

class OnlineRemi : public QWidget
{
    Q_OBJECT
    
public:
    explicit OnlineRemi(QWidget *parent = 0);
    ~OnlineRemi();

private Q_SLOTS:
    void loadPakete();
    void on_loadRemis_pushButton_clicked();
    void loadReplyFinished();

    void on_remi_pakete_tableWidget_itemSelectionChanged();

private:
    Ui::OnlineRemi *ui;
    QSqlDatabase db;
    DecipherAddon da;

    QMap<QString, QNetworkReply*> loadReplys;

    QLabel *load_progress_label;
    QProgressBar *load_progress_bar;
};

#endif // ONLINEREMI_H
